<%@ Page language="C#" AutoEventWireup="true" CodeFile="tasks.aspx.cs" Inherits="tasks" %>
<!--
Copyright 2002-2011 Corey Trager
Distributed under the terms of the GNU General Public License
-->
<!-- #include file = "inc.aspx" -->
<html>
<head>
<title id="titl" runat="server">btnet tasks</title>

<link rel="StyleSheet" href="btnet.css" type="text/css">

<script type="text/javascript" language="JavaScript" src="sortable.js"></script>


<script>

function body_on_load()
{
	parent.set_task_cnt(<% Response.Write(Convert.ToString(ds.Tables[0].Rows.Count)); %>)
}

</script>

</head>
<body onload="body_on_load()">


<div class=align>

Tasks for 
<asp:Label ID="singular_bug_label" runat="server"></asp:Label>
<p>

<% if (permission_level == Security.PERMISSION_ALL && (security.user.is_admin || security.user.can_edit_tasks)) { %>
<a href=edit_task.aspx?id=0&bugid=<asp:Label ID="bug_id" runat="server"></asp:Label>>add new task</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a target=_blank href=tasks_all.aspx>view all tasks</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a target=_blank href=tasks_all_excel.aspx>export all tasks to excel</a>
<p>

<% } %>

<%
if (ds.Tables[0].Rows.Count > 0)
{
	SortableHtmlTable.create_from_dataset(
		Response, ds, "", "", false); 
}
else
{
	Response.Write ("No tasks.");
}

%>
</div>
<asp:Literal ID="custom_footer_label" runat="server"></asp:Literal></body>
</html>


